<template>
  <div>
    <h1><a href="">{{ msg }}</a></h1>
    <img src="../assets/logo.png" alt="" id="logopic">
    <h3>{{user}}</h3>
    <h4 @click="toShow">退出</h4>
  </div>

</template>

<script>
  export default {
    name: 'Header',
    data() {
      return {
        user: "123456",
        msg: 'MusicPlayer'
      }
    },
    methods: {
      toShow() {
        this.$parent.showIs = 0,
          this.$parent.showIss = 1
      }
    },
  }

</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  h1,
  a {
    position: absolute;
    top: 0%;
    left: 44%;
    font-size: 30px;
    color: rgb(255, 255, 255, 0.6);
    text-decoration: none;
  }

  h3 {
    position: absolute;
    right: 175px;
    top: 35px;
    color: rgb(255, 255, 255, 0.6);
  }

  h4 {
    position: absolute;
    color: rgb(255, 255, 255, 0.6);
    right: 50px;
    top: 35px;
    cursor: pointer;
  }

  #logopic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    right: 250px;
    top: 25px;
  }
  ::-webkit-scrollbar{
    width: 0px;
  }
  ::-webkit-scrollbar-track{
    width: 0px;
  }
  ::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color:transparent;
}
</style>
